import http from '@/utils/http.js'


export default {
    // 获取钱包
    getWallet(params) {
        return http({
            method: 'get',
            url: `/settlement/web/account`,
            params
        })
    },
    // 财呼币兑换金石
    putExchang(params) {
        return http({
            method: 'PUT',
            url: `/settlement/web/exchange`,
            params
        })
    },
    //设置支付密码
    Acountpaswd(params) {
        return http({
            method: 'PUT',
            url: `/settlement/web/account/password`,
            params
        })
    },
    //修改用户客户端设置信息
    Acountinfos(params) {
        return http({
            method: 'POST',
            url: `/user/setting/web/addOrUpdate`,
            params
        })
    },
    //查询用户客户端设置
    Getinfos(params) {
        return http({
            method: 'GET',
            url: `/user/setting/web/getSettings`,
            params
        })
    },
    //财呼币兑换明细列表
    Setexclist(params) {
        return http({
            method: 'GET',
            url: `/settlement/web/exchange/list`,
            params
        })
    },
    //查询专栏收益明细列表
    Getprofit(params) {
        return http({
            method: 'GET',
            url: `/settlement/web/user/profitDetails`,
            params
        })
    },

    //保存或修改银行账户信息
    Bankpsot(data) {
        return http({
            method: 'POST',
            url: `/settlement/web/bank/account/update`,
            data
        })
    },

    //查询银行账户信息
    Getbankinf(params) {
        return http({
            method: 'GET',
            url: `/settlement/web/bank/account`,
            params
        })
    },
    // /申请提现
    withdextr(params) {
        return http({
            method: 'POST',
            url: `/settlement/web/extract`,
            params
        })
    },

    //查询提现记录列表    
    Getlistextr(params) {
        return http({
            method: 'GET',
            url: `/settlement/web/extract/list`,
            params
        })
    },

    // 查服务费和实际到账金额
    getCalculate(params) {
        return http({
            method: 'GET',
            url: `/jss.support/app/serviceChargeCalculate`,
            params
        })
    },



}